package com.jic.service;

import org.g4studio.core.metatype.Dto;

import java.util.Map;

public interface OrderService {

    public String createOrder(Dto order, Integer memberId) throws Exception;

    public void saveExchangeOrder(Map<String, Object> order, Integer memberId) throws Exception;

    /**
     * 取消订单
     * @param order 订单信息
     * @param memberId 用户id
     * @throws Exception
     */
    public void cancleOrder(Dto order, Integer memberId) throws Exception;

    /**
     * 删除订单
     * @param order 订单信息
     * @param memberId 用户id
     * @throws Exception
     */
    public void deleteOrder(Dto order, Integer memberId) throws Exception;
}

